package com.maimao.model.goods;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.*;

import java.io.Serializable;

/**
 * @author MaoLin Wang
 * @date 2020/11/28 12:07 上午
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@JsonInclude(JsonInclude.Include.NON_NULL)
@TableName("mm_spec_option")
public class SpecOptions implements Serializable {

    private static final long serialVersionUID = 6175122953167300849L;

    @TableId(type = IdType.AUTO, value = "id")
    private Long id;

    @TableField("spec_detail_id")
    private Integer specDetailId;

    @TableField("option")
    private String option;

    @Override
    public String toString() {
        return "SpecOptions{" +
                "id=" + id +
                ", specDetailId=" + specDetailId +
                ", option='" + option + '\'' +
                '}';
    }
}
